package com.xiangjiayi.study.service;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class TimeService {
    @Tool(description = "获取现在时间")
    public String getTimeNow() {
        return LocalDateTime.now().toString();
    }
}
